Skip to content

Deleting a user which has an unreviewed revision is going to delete the entire kb article if the first revision is unreviewed but belongs to a different user #2264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
emilghittasv opened this issue Mar 19, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@emilghittasv
Copy link
Collaborator

Preconditions
Sign in to SUMO with account A

Steps to reproduce
Steps to reproduce the behavior:

  1. Go to https://support.allizom.org/en-US/kb/new
  2. Create a new kb article and don't approve the first revision.
  3. Sign in with a different user (User B) which has the necessary permissions to access an article which is not live yet.
  4. Create a new revision to the article (do not approve it).
  5. Delete the user from step 3.

Expected behavior
Only the unapproved revision from the deleted user is deleted. The unreviewed revision belonging to a different user should not be affected (deleted).

Actual behavior
Both revisions and the entire kb article is deleted.

Desktop:

  • OS: Windows 11
  • Browser: Firefox

Additional context
This issue is reproducible in stage.

@emilghittasv emilghittasv added the bug Something isn't working label Mar 19, 2025
@github-project-automation github-project-automation bot moved this to ❓ triage in Mozilla Support Mar 19, 2025
@emilghittasv emilghittasv moved this from ❓ triage to 🗄 backlog in Mozilla Support Mar 19, 2025
@akatsoulas akatsoulas moved this from 🗄 backlog to 🚀 in progress in Mozilla Support Mar 20, 2025
@akatsoulas akatsoulas self-assigned this Mar 20, 2025
@akatsoulas
Copy link
Collaborator

PR mozilla/kitsune#6577

@akatsoulas akatsoulas moved this from 🚀 in progress to 📚 review in Mozilla Support Mar 20, 2025
@akatsoulas
Copy link
Collaborator

@escattone just an fyi in case this is also relevant to #2262

@emilghittasv
Copy link
Collaborator Author

I can confirm that this issue is verified fixed in stage.

I'm moving this ticket inside the release column.

@emilghittasv emilghittasv moved this from 🔎 QA to 🚢 release in Mozilla Support Mar 25, 2025
@github-project-automation github-project-automation bot moved this from 🚢 release to ✔ done in Mozilla Support Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants